#include "task_manager.h"

/* 按键扫描任务 */
void ScanKeyTask(void)
{
    cotKey_Scan(HAL_GetTick());
}

/* LED扫描任务 */
void ScanLedTask(void)
{
    cotLed_Ctrl(HAL_GetTick());
}

/* 调度测试任务 */
void TestScheduleTask(void)
{
    static uint32_t counter = 0;
    static uint32_t lastTime = 0;
    uint32_t currentTime = HAL_GetTick();
    counter++;
    printf("Task executed: %ld, interval: %ldms\r\n", (long)counter, (long)currentTime - lastTime);
    lastTime = currentTime;
}
